package com.yoyo.itravel.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 机票实体类
 * liuchaojie
 */
public class FlightTicketType implements Serializable {
    private String ticketTypeId;//机票类型id
    private String flightId;//机票所属航班id
    private String ticketTypeName;//机票类型名称
    private String tankType;//舱型名称
    private BigDecimal initPrice;//机票原始价格
    private Double discount;//折扣（根据各方面给出折扣）
    private Integer luggageWeight;//可托运行李的重量（单位kg）
    private Integer isCancel;//是否可取消（0：不可取消  1：可取消）
    private String cancelRule;//取消条件

    @Override
    public String toString() {
        return "FlightTicketType{" +
                "ticketTypeId='" + ticketTypeId + '\'' +
                ", flightId='" + flightId + '\'' +
                ", ticketTypeName='" + ticketTypeName + '\'' +
                ", tankType='" + tankType + '\'' +
                ", initPrice=" + initPrice +
                ", discount=" + discount +
                ", luggageWeight=" + luggageWeight +
                ", isCancel=" + isCancel +
                ", cancelRule='" + cancelRule + '\'' +
                '}';
    }

    public String getTicketTypeId() {
        return ticketTypeId;
    }

    public void setTicketTypeId(String ticketTypeId) {
        this.ticketTypeId = ticketTypeId;
    }

    public String getFlightId() {
        return flightId;
    }

    public void setFlightId(String flightId) {
        this.flightId = flightId;
    }

    public String getTicketTypeName() {
        return ticketTypeName;
    }

    public void setTicketTypeName(String ticketTypeName) {
        this.ticketTypeName = ticketTypeName;
    }

    public BigDecimal getInitPrice() {
        return initPrice;
    }

    public void setInitPrice(BigDecimal initPrice) {
        this.initPrice = initPrice;
    }

    public Integer getLuggageWeight() {
        return luggageWeight;
    }

    public void setLuggageWeight(Integer luggageWeight) {
        this.luggageWeight = luggageWeight;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Integer getIsCancel() {
        return isCancel;
    }

    public void setIsCancel(Integer isCancel) {
        this.isCancel = isCancel;
    }

    public String getCancelRule() {
        return cancelRule;
    }

    public void setCancelRule(String cancelRule) {
        this.cancelRule = cancelRule;
    }

    public String getTankType() {
        return tankType;
    }

    public void setTankType(String tankType) {
        this.tankType = tankType;
    }

    public FlightTicketType(String ticketTypeId, String flightId, String ticketTypeName, String tankType, BigDecimal initPrice, Double discount, Integer luggageWeight, Integer isCancel, String cancelRule) {
        this.ticketTypeId = ticketTypeId;
        this.flightId = flightId;
        this.ticketTypeName = ticketTypeName;
        this.tankType = tankType;
        this.initPrice = initPrice;
        this.discount = discount;
        this.luggageWeight = luggageWeight;
        this.isCancel = isCancel;
        this.cancelRule = cancelRule;
    }

    public FlightTicketType() {
    }
}
